<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<html>
<head>
    <title>HelloWorld for order JSP</title>
</head>
<body>
<c:if test="${isErr}">
    <h2 style="color: darkgoldenrod">${errMsg}</h2>
</c:if>

<c:forEach items="${orders}" var="order">
    <p>订单商品id：${order.goodsId}  商品数量：${order.total} 商品状态：
        <c:choose>
            <c:when test = "${order.status eq 1}">已支付</c:when>
            <c:when test = "${order.status eq 2}">未支付</c:when>
            <c:otherwise>订单异常</c:otherwise>
        </c:choose>
    </p>
</c:forEach>


<%--<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf" %>--%>
</body>
</html>